use Illuminate\Filesystem\Filesystem; $file = new Filesystem; $file->cleanDirectory('storage/app/backgrounds');